package com.allwees.bs.c.module.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.allwees.bs.c.module.ops.entity.CouponDefEntity;
import com.allwees.bs.core.model.user.entity.UserCouponModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@Entity
@Table(name = "usr_account_coupon")
@TableName("usr_account_coupon")
public class UserCouponEntity extends UserCouponModel implements Serializable {

    private static final long serialVersionUID = 751669419990123394L;

    public UserCouponEntity(CouponDefEntity coupon, Date receiveDate) {
        super(coupon, receiveDate);
        this.receiveDate = receiveDate;
    }
}
